home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / haeberli / include / colortbl.inc < prev    next >
Text File  |  1994-08-01  |  21KB  |  542 lines

  1. /*
  2.  * DO NOT EDIT THIS FILE.  It was automatically generated by mkcolor
  3.  * 5 red, 8 green, 5 blue
  4.  * 2 grey values in the basic table; 24 added
  5.  */
  6.  
  7. unsigned char red_map[256] = {
  8.   0,255,  0,255,  0,255,  0,255, 85,198,113,142,113,142, 56,170,170, 85,170, 85,
  9. 170, 85,170, 85,170, 85,170, 85,170, 85,170, 85, 10, 20, 30, 40, 51, 61, 71, 81,
  10.  91,102,112,122,132,142,153,163,173,183,193,204,214,224,234,244,  0,  0,  0,  0,
  11.   0,  0,  0,  0, 63, 63, 63, 63, 63, 63, 63, 63,127,127,127,127,127,127,127,127,
  12. 191,191,191,191,191,191,191,191,255,255,255,255,255,255,255,255,  0,  0,  0,  0,
  13.   0,  0,  0,  0, 63, 63, 63, 63, 63, 63, 63, 63,127,127,127,127,127,127,127,127,
  14. 191,191,191,191,191,191,191,191,255,255,255,255,255,255,255,255,  0,  0,  0,  0,
  15.   0,  0,  0,  0, 63, 63, 63, 63, 63, 63, 63, 63,127,127,127,127,127,127,127,127,
  16. 191,191,191,191,191,191,191,191,255,255,255,255,255,255,255,255,  0,  0,  0,  0,
  17.   0,  0,  0,  0, 63, 63, 63, 63, 63, 63, 63, 63,127,127,127,127,127,127,127,127,
  18. 191,191,191,191,191,191,191,191,255,255,255,255,255,255,255,255,  0,  0,  0,  0,
  19.   0,  0,  0,  0, 63, 63, 63, 63, 63, 63, 63, 63,127,127,127,127,127,127,127,127,
  20. 191,191,191,191,191,191,191,191,255,255,255,255,255,255,255,255,
  21. };
  22.  
  23. unsigned char green_map[256] = {
  24.   0,  0,255,255,  0,  0,255,255, 85,113,198,142,113, 56,142,170,170, 85,170, 85,
  25. 170, 85,170, 85,170, 85,170, 85,170, 85,170, 85, 10, 20, 30, 40, 51, 61, 71, 81,
  26.  91,102,112,122,132,142,153,163,173,183,193,204,214,224,234,244,  0, 36, 72,109,
  27. 145,182,218,255,  0, 36, 72,109,145,182,218,255,  0, 36, 72,109,145,182,218,255,
  28.   0, 36, 72,109,145,182,218,255,  0, 36, 72,109,145,182,218,255,  0, 36, 72,109,
  29. 145,182,218,255,  0, 36, 72,109,145,182,218,255,  0, 36, 72,109,145,182,218,255,
  30.   0, 36, 72,109,145,182,218,255,  0, 36, 72,109,145,182,218,255,  0, 36, 72,109,
  31. 145,182,218,255,  0, 36, 72,109,145,182,218,255,  0, 36, 72,109,145,182,218,255,
  32.   0, 36, 72,109,145,182,218,255,  0, 36, 72,109,145,182,218,255,  0, 36, 72,109,
  33. 145,182,218,255,  0, 36, 72,109,145,182,218,255,  0, 36, 72,109,145,182,218,255,
  34.   0, 36, 72,109,145,182,218,255,  0, 36, 72,109,145,182,218,255,  0, 36, 72,109,
  35. 145,182,218,255,  0, 36, 72,109,145,182,218,255,  0, 36, 72,109,145,182,218,255,
  36.   0, 36, 72,109,145,182,218,255,  0, 36, 72,109,145,182,218,255,
  37. };
  38.  
  39. unsigned char blue_map[256] = {
  40.   0,  0,  0,  0,255,255,255,255, 85,113,113, 56,198,142,142,170,170, 85,170, 85,
  41. 170, 85,170, 85,170, 85,170, 85,170, 85,170, 85, 10, 20, 30, 40, 51, 61, 71, 81,
  42.  91,102,112,122,132,142,153,163,173,183,193,204,214,224,234,244,  0,  0,  0,  0,
  43.   0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
  44.   0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 63, 63, 63, 63,
  45.  63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
  46.  63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63,127,127,127,127,
  47. 127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,
  48. 127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,191,191,191,191,
  49. 191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,
  50. 191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,255,255,255,255,
  51. 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  52. 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  53. };
  54.  
  55. unsigned char red_inverse[256] = {
  56.   0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
  57.   0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
  58.   0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  8,  8,  8,
  59.   8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,
  60.   8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,  8,
  61.   8,  8,  8,  8,  8,  8,  8,  8, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
  62.  16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
  63.  16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 24,
  64.  24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
  65.  24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
  66.  24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
  67.  32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
  68.  32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
  69. };
  70.  
  71. unsigned char green_inverse[256] = {
  72.   0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
  73.   0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,  1,  1,
  74.   1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
  75.   1,  1,  1,  1,  1,  1,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,
  76.   2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  3,  3,
  77.   3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,
  78.   3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,
  79.   4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,
  80.   4,  4,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
  81.   5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  6,  6,  6,  6,  6,  6,
  82.   6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,  6,
  83.   6,  6,  6,  6,  6,  6,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
  84.   7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
  85. };
  86.  
  87. unsigned char blue_inverse[256] = {
  88.  56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
  89.  56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
  90.  56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 96, 96, 96,
  91.  96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
  92.  96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
  93.  96, 96, 96, 96, 96, 96, 96, 96,136,136,136,136,136,136,136,136,136,136,136,136,
  94. 136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
  95. 136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,176,
  96. 176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,
  97. 176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,176,
  98. 176,176,176,176,176,176,176,176,176,176,216,216,216,216,216,216,216,216,216,216,
  99. 216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,
  100. 216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,
  101. };
  102.  
  103. unsigned char grey_inverse[256] = {
  104.  56, 56, 56, 56, 56, 56, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33,
  105.  33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35,
  106.  35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37,
  107.  37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39,
  108.  39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41,
  109.  41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43,
  110.  43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45,
  111.  45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47,
  112.  47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49,
  113.  49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51,
  114.  51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
  115.  53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54,
  116.  55, 55, 55, 55, 55, 55, 55, 55, 55, 55,255,255,255,255,255,255,
  117. };
  118.  
  119. #ifndef NOGREYPATTERNS
  120. static short  greyshade_pixels[24][16] = {
  121.  0x0111, 0x0000, 0x0000, 0x0000, 0x1010, 0x0000, 0x0000, 0x0000,
  122.   0x0101, 0x0000, 0x0000, 0x0000, 0x1010, 0x0000, 0x0000, 0x0000,
  123.  0x1111, 0x0000, 0x0404, 0x0000, 0x1111, 0x0000, 0x0000, 0x0000,
  124.   0x1111, 0x0000, 0x0400, 0x0000, 0x1111, 0x0000, 0x0000, 0x0000,
  125.  0x1111, 0x0000, 0x4444, 0x0000, 0x1111, 0x0000, 0x4044, 0x0000,
  126.   0x1111, 0x0000, 0x4444, 0x0000, 0x1111, 0x0000, 0x4040, 0x0000,
  127.  0x1515, 0x0000, 0x4444, 0x0000, 0x5151, 0x0000, 0x4444, 0x0000,
  128.   0x1515, 0x0000, 0x4444, 0x0000, 0x5111, 0x0000, 0x4444, 0x0000,
  129.  0x5555, 0x0000, 0x4445, 0x0000, 0x5555, 0x0000, 0x4444, 0x0000,
  130.   0x5555, 0x0000, 0x4444, 0x0000, 0x5555, 0x0000, 0x4444, 0x0000,
  131.  0x5555, 0x0000, 0x5555, 0x0000, 0x5555, 0x0000, 0x5454, 0x0000,
  132.   0x5555, 0x0000, 0x5545, 0x0000, 0x5555, 0x0000, 0x5454, 0x0000,
  133.  0x5555, 0x0202, 0x5555, 0x0000, 0x5555, 0x0000, 0x5555, 0x0000,
  134.   0x5555, 0x0202, 0x5555, 0x0000, 0x5555, 0x0000, 0x5555, 0x0000,
  135.  0x5555, 0x2222, 0x5555, 0x0000, 0x5555, 0x2022, 0x5555, 0x0000,
  136.   0x5555, 0x2222, 0x5555, 0x0000, 0x5555, 0x2220, 0x5555, 0x0000,
  137.  0x5555, 0x2222, 0x5555, 0x0808, 0x5555, 0x2222, 0x5555, 0x8080,
  138.   0x5555, 0x2222, 0x5555, 0x0808, 0x5555, 0x2222, 0x5555, 0x8080,
  139.  0x5555, 0x222a, 0x5555, 0x8888, 0x5555, 0x2222, 0x5555, 0x8888,
  140.   0x5555, 0x2a22, 0x5555, 0x8888, 0x5555, 0x2222, 0x5555, 0x8888,
  141.  0x5555, 0xaaaa, 0x5555, 0x8888, 0x5555, 0xa2a2, 0x5555, 0x8888,
  142.   0x5555, 0xaaaa, 0x5555, 0x8888, 0x5555, 0xa2a2, 0x5555, 0x8888,
  143.  0x5555, 0xaaaa, 0x5555, 0x8a8a, 0x5555, 0xaaaa, 0x5555, 0x88a8,
  144.   0x5555, 0xaaaa, 0x5555, 0x8a8a, 0x5555, 0xaaaa, 0x5555, 0xa888,
  145.  0x5555, 0xaaaa, 0x5555, 0xaaaa, 0x5555, 0xaaaa, 0x5555, 0xaaaa,
  146.   0x5555, 0xaaaa, 0x5555, 0xaaaa, 0x5555, 0xaaaa, 0x5555, 0xaaaa,
  147.  0x5777, 0xaaaa, 0x5555, 0xaaaa, 0x7575, 0xaaaa, 0x5555, 0xaaaa,
  148.   0x5757, 0xaaaa, 0x5555, 0xaaaa, 0x7575, 0xaaaa, 0x5555, 0xaaaa,
  149.  0x7777, 0xaaaa, 0x5d5d, 0xaaaa, 0x7777, 0xaaaa, 0x5555, 0xaaaa,
  150.   0x7777, 0xaaaa, 0x5d55, 0xaaaa, 0x7777, 0xaaaa, 0x5555, 0xaaaa,
  151.  0x7777, 0xaaaa, 0xdddd, 0xaaaa, 0x7777, 0xaaaa, 0xd5dd, 0xaaaa,
  152.   0x7777, 0xaaaa, 0xdddd, 0xaaaa, 0x7777, 0xaaaa, 0xd5d5, 0xaaaa,
  153.  0x7f7f, 0xaaaa, 0xdddd, 0xaaaa, 0xf7f7, 0xaaaa, 0xdddd, 0xaaaa,
  154.   0x7f7f, 0xaaaa, 0xdddd, 0xaaaa, 0xf777, 0xaaaa, 0xdddd, 0xaaaa,
  155.  0xffff, 0xaaaa, 0xdddf, 0xaaaa, 0xffff, 0xaaaa, 0xdddd, 0xaaaa,
  156.   0xffff, 0xaaaa, 0xdddd, 0xaaaa, 0xffff, 0xaaaa, 0xdddd, 0xaaaa,
  157.  0xffff, 0xaaaa, 0xffff, 0xaaaa, 0xffff, 0xaaaa, 0xfdfd, 0xaaaa,
  158.   0xffff, 0xaaaa, 0xffdf, 0xaaaa, 0xffff, 0xaaaa, 0xfdfd, 0xaaaa,
  159.  0xffff, 0xabab, 0xffff, 0xaaaa, 0xffff, 0xaaaa, 0xffff, 0xaaaa,
  160.   0xffff, 0xabab, 0xffff, 0xaaaa, 0xffff, 0xaaaa, 0xffff, 0xaaaa,
  161.  0xffff, 0xbbbb, 0xffff, 0xaaaa, 0xffff, 0xbabb, 0xffff, 0xaaaa,
  162.   0xffff, 0xbbbb, 0xffff, 0xaaaa, 0xffff, 0xbbba, 0xffff, 0xaaaa,
  163.  0xffff, 0xbbbb, 0xffff, 0xaeae, 0xffff, 0xbbbb, 0xffff, 0xeaea,
  164.   0xffff, 0xbbbb, 0xffff, 0xaeae, 0xffff, 0xbbbb, 0xffff, 0xeaea,
  165.  0xffff, 0xbbbf, 0xffff, 0xeeee, 0xffff, 0xbbbb, 0xffff, 0xeeee,
  166.   0xffff, 0xbfbb, 0xffff, 0xeeee, 0xffff, 0xbbbb, 0xffff, 0xeeee,
  167.  0xffff, 0xffff, 0xffff, 0xeeee, 0xffff, 0xfbfb, 0xffff, 0xeeee,
  168.   0xffff, 0xffff, 0xffff, 0xeeee, 0xffff, 0xfbfb, 0xffff, 0xeeee,
  169. };
  170. static struct mpr_data greyshade_mpr[24] = {
  171.  2, greyshade_pixels[0], 0, 0, 0, 0,
  172.  2, greyshade_pixels[1], 0, 0, 0, 0,
  173.  2, greyshade_pixels[2], 0, 0, 0, 0,
  174.  2, greyshade_pixels[3], 0, 0, 0, 0,
  175.  2, greyshade_pixels[4], 0, 0, 0, 0,
  176.  2, greyshade_pixels[5], 0, 0, 0, 0,
  177.  2, greyshade_pixels[6], 0, 0, 0, 0,
  178.  2, greyshade_pixels[7], 0, 0, 0, 0,
  179.  2, greyshade_pixels[8], 0, 0, 0, 0,
  180.  2, greyshade_pixels[9], 0, 0, 0, 0,
  181.  2, greyshade_pixels[10], 0, 0, 0, 0,
  182.  2, greyshade_pixels[11], 0, 0, 0, 0,
  183.  2, greyshade_pixels[12], 0, 0, 0, 0,
  184.  2, greyshade_pixels[13], 0, 0, 0, 0,
  185.  2, greyshade_pixels[14], 0, 0, 0, 0,
  186.  2, greyshade_pixels[15], 0, 0, 0, 0,
  187.  2, greyshade_pixels[16], 0, 0, 0, 0,
  188.  2, greyshade_pixels[17], 0, 0, 0, 0,
  189.  2, greyshade_pixels[18], 0, 0, 0, 0,
  190.  2, greyshade_pixels[19], 0, 0, 0, 0,
  191.  2, greyshade_pixels[20], 0, 0, 0, 0,
  192.  2, greyshade_pixels[21], 0, 0, 0, 0,
  193.  2, greyshade_pixels[22], 0, 0, 0, 0,
  194.  2, greyshade_pixels[23], 0, 0, 0, 0,
  195. };
  196. extern struct pixrectops mem_ops, tile_ops;
  197. static struct pixrect greyshade_pr[24] = {
  198.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[0], 0,
  199.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[1], 0,
  200.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[2], 0,
  201.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[3], 0,
  202.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[4], 0,
  203.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[5], 0,
  204.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[6], 0,
  205.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[7], 0,
  206.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[8], 0,
  207.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[9], 0,
  208.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[10], 0,
  209.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[11], 0,
  210.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[12], 0,
  211.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[13], 0,
  212.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[14], 0,
  213.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[15], 0,
  214.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[16], 0,
  215.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[17], 0,
  216.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[18], 0,
  217.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[19], 0,
  218.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[20], 0,
  219.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[21], 0,
  220.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[22], 0,
  221.  &mem_ops, 16, 16, 1, (caddr_t) &greyshade_mpr[23], 0,
  222. };
  223. static struct pixrect greyshade_tile[24] = {
  224.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[0], 0,
  225.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[1], 0,
  226.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[2], 0,
  227.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[3], 0,
  228.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[4], 0,
  229.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[5], 0,
  230.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[6], 0,
  231.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[7], 0,
  232.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[8], 0,
  233.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[9], 0,
  234.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[10], 0,
  235.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[11], 0,
  236.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[12], 0,
  237.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[13], 0,
  238.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[14], 0,
  239.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[15], 0,
  240.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[16], 0,
  241.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[17], 0,
  242.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[18], 0,
  243.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[19], 0,
  244.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[20], 0,
  245.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[21], 0,
  246.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[22], 0,
  247.  &tile_ops, 9999, 9999, 1, (caddr_t) &greyshade_pr[23], 0,
  248. };
  249. struct pixrect *grey_patterns[256] = {
  250.  0,
  251.  0,
  252.  0,
  253.  0,
  254.  0,
  255.  0,
  256.  0,
  257.  0,
  258.  &greyshade_tile[16],
  259.  &greyshade_tile[4],
  260.  &greyshade_tile[4],
  261.  &greyshade_tile[10],
  262.  &greyshade_tile[4],
  263.  &greyshade_tile[10],
  264.  &greyshade_tile[10],
  265.  &greyshade_tile[7],
  266.  &greyshade_tile[7],
  267.  &greyshade_tile[16],
  268.  &greyshade_tile[7],
  269.  &greyshade_tile[16],
  270.  &greyshade_tile[7],
  271.  &greyshade_tile[16],
  272.  &greyshade_tile[7],
  273.  &greyshade_tile[16],
  274.  &greyshade_tile[7],
  275.  &greyshade_tile[16],
  276.  &greyshade_tile[7],
  277.  &greyshade_tile[16],
  278.  &greyshade_tile[7],
  279.  &greyshade_tile[16],
  280.  &greyshade_tile[7],
  281.  &greyshade_tile[16],
  282.  &greyshade_tile[23],
  283.  &greyshade_tile[22],
  284.  &greyshade_tile[21],
  285.  &greyshade_tile[20],
  286.  &greyshade_tile[19],
  287.  &greyshade_tile[18],
  288.  &greyshade_tile[17],
  289.  &greyshade_tile[16],
  290.  &greyshade_tile[15],
  291.  &greyshade_tile[14],
  292.  &greyshade_tile[13],
  293.  &greyshade_tile[12],
  294.  &greyshade_tile[11],
  295.  &greyshade_tile[10],
  296.  &greyshade_tile[9],
  297.  &greyshade_tile[8],
  298.  &greyshade_tile[7],
  299.  &greyshade_tile[6],
  300.  &greyshade_tile[5],
  301.  &greyshade_tile[4],
  302.  &greyshade_tile[3],
  303.  &greyshade_tile[2],
  304.  &greyshade_tile[1],
  305.  &greyshade_tile[0],
  306.  0,
  307.  &greyshade_tile[21],
  308.  &greyshade_tile[17],
  309.  &greyshade_tile[13],
  310.  &greyshade_tile[10],
  311.  &greyshade_tile[6],
  312.  &greyshade_tile[2],
  313.  0,
  314.  &greyshade_tile[18],
  315.  &greyshade_tile[18],
  316.  &greyshade_tile[17],
  317.  &greyshade_tile[13],
  318.  &greyshade_tile[10],
  319.  &greyshade_tile[6],
  320.  &greyshade_tile[2],
  321.  0,
  322.  &greyshade_tile[12],
  323.  &greyshade_tile[12],
  324.  &greyshade_tile[12],
  325.  &greyshade_tile[12],
  326.  &greyshade_tile[10],
  327.  &greyshade_tile[6],
  328.  &greyshade_tile[2],
  329.  0,
  330.  &greyshade_tile[5],
  331.  &greyshade_tile[5],
  332.  &greyshade_tile[5],
  333.  &greyshade_tile[5],
  334.  &greyshade_tile[5],
  335.  &greyshade_tile[5],
  336.  &greyshade_tile[2],
  337.  0,
  338.  0,
  339.  0,
  340.  0,
  341.  0,
  342.  0,
  343.  0,
  344.  0,
  345.  0,
  346.  &greyshade_tile[18],
  347.  &greyshade_tile[18],
  348.  &greyshade_tile[17],
  349.  &greyshade_tile[13],
  350.  &greyshade_tile[10],
  351.  &greyshade_tile[6],
  352.  &greyshade_tile[2],
  353.  0,
  354.  &greyshade_tile[18],
  355.  &greyshade_tile[18],
  356.  &greyshade_tile[17],
  357.  &greyshade_tile[13],
  358.  &greyshade_tile[10],
  359.  &greyshade_tile[6],
  360.  &greyshade_tile[2],
  361.  0,
  362.  &greyshade_tile[12],
  363.  &greyshade_tile[12],
  364.  &greyshade_tile[12],
  365.  &greyshade_tile[12],
  366.  &greyshade_tile[10],
  367.  &greyshade_tile[6],
  368.  &greyshade_tile[2],
  369.  0,
  370.  &greyshade_tile[5],
  371.  &greyshade_tile[5],
  372.  &greyshade_tile[5],
  373.  &greyshade_tile[5],
  374.  &greyshade_tile[5],
  375.  &greyshade_tile[5],
  376.  &greyshade_tile[2],
  377.  0,
  378.  0,
  379.  0,
  380.  0,
  381.  0,
  382.  0,
  383.  0,
  384.  0,
  385.  0,
  386.  &greyshade_tile[12],
  387.  &greyshade_tile[12],
  388.  &greyshade_tile[12],
  389.  &greyshade_tile[12],
  390.  &greyshade_tile[10],
  391.  &greyshade_tile[6],
  392.  &greyshade_tile[2],
  393.  0,
  394.  &greyshade_tile[12],
  395.  &greyshade_tile[12],
  396.  &greyshade_tile[12],
  397.  &greyshade_tile[12],
  398.  &greyshade_tile[10],
  399.  &greyshade_tile[6],
  400.  &greyshade_tile[2],
  401.  0,
  402.  &greyshade_tile[12],
  403.  &greyshade_tile[12],
  404.  &greyshade_tile[12],
  405.  &greyshade_tile[12],
  406.  &greyshade_tile[10],
  407.  &greyshade_tile[6],
  408.  &greyshade_tile[2],
  409.  0,
  410.  &greyshade_tile[5],
  411.  &greyshade_tile[5],
  412.  &greyshade_tile[5],
  413.  &greyshade_tile[5],
  414.  &greyshade_tile[5],
  415.  &greyshade_tile[5],
  416.  &greyshade_tile[2],
  417.  0,
  418.  0,
  419.  0,
  420.  0,
  421.  0,
  422.  0,
  423.  0,
  424.  0,
  425.  0,
  426.  &greyshade_tile[5],
  427.  &greyshade_tile[5],
  428.  &greyshade_tile[5],
  429.  &greyshade_tile[5],
  430.  &greyshade_tile[5],
  431.  &greyshade_tile[5],
  432.  &greyshade_tile[2],
  433.  0,
  434.  &greyshade_tile[5],
  435.  &greyshade_tile[5],
  436.  &greyshade_tile[5],
  437.  &greyshade_tile[5],
  438.  &greyshade_tile[5],
  439.  &greyshade_tile[5],
  440.  &greyshade_tile[2],
  441.  0,
  442.  &greyshade_tile[5],
  443.  &greyshade_tile[5],
  444.  &greyshade_tile[5],
  445.  &greyshade_tile[5],
  446.  &greyshade_tile[5],
  447.  &greyshade_tile[5],
  448.  &greyshade_tile[2],
  449.  0,
  450.  &greyshade_tile[5],
  451.  &greyshade_tile[5],
  452.  &greyshade_tile[5],
  453.  &greyshade_tile[5],
  454.  &greyshade_tile[5],
  455.  &greyshade_tile[5],
  456.  &greyshade_tile[2],
  457.  0,
  458.  0,
  459.  0,
  460.  0,
  461.  0,
  462.  0,
  463.  0,
  464.  0,
  465.  0,
  466.  0,
  467.  0,
  468.  0,
  469.  0,
  470.  0,
  471.  0,
  472.  0,
  473.  0,
  474.  0,
  475.  0,
  476.  0,
  477.  0,
  478.  0,
  479.  0,
  480.  0,
  481.  0,
  482.  0,
  483.  0,
  484.  0,
  485.  0,
  486.  0,
  487.  0,
  488.  0,
  489.  0,
  490.  0,
  491.  0,
  492.  0,
  493.  0,
  494.  0,
  495.  0,
  496.  0,
  497.  0,
  498.  0,
  499.  0,
  500.  0,
  501.  0,
  502.  0,
  503.  0,
  504.  0,
  505.  0,
  506. };
  507. unsigned char grey_opcode[256] = {
  508.  PIX_SET, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR,
  509.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC,
  510.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC,
  511.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC,
  512.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC,
  513.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC,
  514.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC,
  515.  PIX_SET, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  516.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  517.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  518.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  519.  PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR,
  520.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  521.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  522.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  523.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  524.  PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR,
  525.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  526.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  527.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  528.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  529.  PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR,
  530.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  531.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  532.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  533.  PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_SRC, PIX_CLR,
  534.  PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR,
  535.  PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR,
  536.  PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR,
  537.  PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR,
  538.  PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR,
  539.  PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR, PIX_CLR,
  540. };
  541. #endif  /* !NOGREYPATTERNS */
  542.